<template>
  <!-- 首页底部图片区域 -->
  <div class="box">
    <ul class="list">
      <li v-for="m in menuNav" :key="m.id">
        <router-link :to="{name:m.name,query:{id:m.id}}">
          <img class="listImg" :src="m.img" alt="" /></router-link>
      </li>
    </ul>
  </div>
</template>
<script>
import { getAreapictures } from '@/api/home';

export default {
  data() {
    return {
      menuNav: [],
    };
  },
  created() {
    this.getNavs();
  },
  methods: {
    async getNavs() {
      const { data } = await getAreapictures();
      this.menuNav = data;
    },
  },
};
</script>
<style lang="scss" scoped>
.box {
  .list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    li {
        position: relative;
      img {
        width: 114px;
        height: 114px;
      }
    }
  }
}
</style>
